home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / disk-tools / hdoff / hdoff.doc < prev    next >
Encoding:
PGP Message  |  1996-03-16  |  8.9 KB  |  233 lines

  1. -----BEGIN PGP SIGNED MESSAGE-----
  2.  
  3.  
  4. NAME
  5.         HDOff -- a program for the A600/A1200 and A4000 to stop the HD
  6.         motor.
  7.  
  8. SYNOPSIS
  9.         HDOff T=TIME/N,T2=TIME2/N,FORCE/S,OTHER/S,OTHER2/S,NOW/S,NOW2/S,
  10.         SET1200/S,SET4000/S,UPDATE/S,QUIET/S,STOP/S,STOP2/S
  11.  
  12. DESCRIPTION
  13.         HDOff  is  a program like NoiseSaver for the A1200 and A4000.  It stops
  14.         the HD motor x minutes after the last access.
  15.  
  16.         TIME, TIME2 :
  17.                 Time in minutes after the 1st/2nd HD will shut down.
  18.  
  19.         FORCE : 
  20.                 Forces  HDOff  to  quit.  Normaly HDOff doesn`t quit if another
  21.                 programm  (like  cachesoftware  ) patched the scsi.device after
  22.                 HDOff  did.   But if you are using SetFuncManager (or something
  23.                 similar), HDOff can nevertheless quit without danger.  ONLY USE
  24.                 THIS  OPTION  IF  YOU ARE USING SETFUNCMANAGER OR SOMTHING LIKE
  25.                 IT!
  26.  
  27.         OTHER, OTHER2 :
  28.                 This  option  makes  HDOff  to  use an alternative command ($94
  29.                 instead  of  $E0)  to  stop the HD`s motor.  If your HD doesn`t
  30.                 spin  down,  try  this  option.   Some drives, especially older
  31.                 ones,  don`t  support  the  `STANDBY`  (all newer drives should
  32.                 support  it,  at  least  the "green-PC" drives supporting power
  33.                 management).
  34.  
  35.         NOW, NOW2 :
  36.                 The  selected HD spins down immediately on startup, the program
  37.                 just does it`s normal job (usefull for seldom used HD`s).
  38.  
  39.         SET1200, SET4000:
  40.                 With  some odd HD`s, HDOff isn`t able to detect wich controller
  41.                 is  present  in  your  Amiga.   If  you  start  HDOff and get a
  42.                 "Incorrect  HD  controller!" message, but are actually using an
  43.                 A600/A1200/A4000,  use  the option SET1200 for an A600/A1200 or
  44.                 SET4000 for an A4000.
  45.  
  46.         UPDATE:
  47.                 With this option you can adjust the shutdowntime online.
  48.  
  49.         QUIET:
  50.                 Using  this  option  HDOff won`t print anything out (similar to
  51.                 >NIL:).  Usefull e.g.  if you start it in the user-startup.
  52.  
  53.         STOP, STOP2:
  54.                 HDOff  will  just stop the 1st (STOP) or 2nd (STOP2) harddrive,
  55.                 but HDOff won`t be installed.
  56.  
  57. NOTE
  58.         Be shure not to set the "time" value too low (maximum are 65535 minutes
  59.         :)  as permanently spinning the drive up and down does shorten the life
  60.         expectancy of the drive (60 minutes is a good choice).
  61.  
  62.         You don`t need to start HDOff with run.
  63.  
  64.         To quit HDOff, simply restart it.
  65.  
  66.         If   a   requester   with   the   message  "Someone  else  has  patched
  67.         scsi.device!..."  pops  up,  someone  else (e.g.  caching software) has
  68.         latched  into  the  scsi.device.   For security reasons HDOff cannot be
  69.         terminated this time.
  70.  
  71.         This  program is 100% written in assembler (DevPac 3.14) and (as far as
  72.         its possible) systemconform.
  73.  
  74. EXAMPLES
  75.         1. HDOff 30
  76.         Stops the motor of the 1st HD 30 minutes after the last access.
  77.  
  78.         2. HDOff 30 15 OTHER2
  79.         Stops  the  motor  of the 1st HD 30 minutes, the motor of the 2nd HD 15
  80.         minutes  after the last access.  For the 2nd HD the alternative command
  81.         will be used to stop the motor
  82.  
  83.         3. HDOff T2=20
  84.         Stops the motor of the 2nd HD 30 minutes after the last access.
  85.  
  86.         4. HDOff 30 15 NOW2
  87.         Stops  the  motor  of  the  1st  HD 30 minutes, the motor of the 2nd HD
  88.         immediately.  If the 2nd HD was accessed and so spins up, the next spin
  89.         down will again happen after 15 mins.
  90.  
  91.         5. HDOff 50 10 UDPATE
  92.         If  you  already  started  HDOff,  the  timeout`s  for the HD`s will be
  93.         changed to the new values.
  94.  
  95.         6. HDOff STOP QUIET
  96.         This  will  just  and  only  stop  the 1st drive, there will not be any
  97.         timeout!  Additionally there will be no output.
  98.  
  99. TECHNICAL
  100.         How does it work? The essential things are:
  101.  
  102.         1. Test if ide controller is present (if not: quit)
  103.  
  104.         2.   Patch  scsi.device  (using  SetFunction,  of  course).   The patch
  105.         signals HD accesses to the main task.
  106.  
  107.         3.  Count the timer down and reinitialize it if a signal from the patch
  108.         occures.
  109.  
  110.         4.   If  timer  reaches 0:  Signal the patch to delay all commands (for
  111.         both  drives)  till  the  signal  is  retracted.  Security delay 1 sec.
  112.         Forbid(),     Wait_IDE_unbusy,     select     drive     (master/slave),
  113.         Wait_IDE_unbusy,  spin  down  HD, Permit().  Retract the signal for the
  114.         patch for the HD that was not stopped, for the other one after a 5 secs
  115.         security delay (spin up is done by the HD itself).
  116.  
  117.     5. Check, if there are any messages and process them.
  118.  
  119.         6.  Repeat step 3-4 until abort.
  120.  
  121.         For   more   information   about   the   messageport  have  a  look  in
  122.         Developers.doc!
  123.  
  124. DISCLAIMER & COPYRIGHT
  125.         This  software  is subject to the "Standard Amiga FD-Software Copyright
  126.         Note"  It is Freeware as defined in paragraph 4a.  For more information
  127.         please read "AFD-COPYRIGHT" (Version 1 or higher).
  128.  
  129. AUTHOR
  130.         Gideon Zenz
  131.         Giersbergstr. 41
  132.         53229 Bonn
  133.         GERMANY
  134.  
  135.         EMail: gzenz@ernie.mi.uni-koeln.de
  136.  
  137.         News about HDOff at: http://ernie.mi.uni-koeln.de/~gzenz/hdoff.html
  138.  
  139.         -Gideon Zenz, 16-Mar-96
  140.  
  141. BUGS
  142.         Non known.
  143.  
  144. FUTURE
  145.         I`ll  change  to  SCSI  (as  everyone should, as ide simply sucks!),
  146.         so there will maybe be a SCSI version.
  147.  
  148. HISTORY
  149.         v1.0: (08-Mai-94)
  150.          - Initial release
  151.  
  152.         v1.1: (30-Jan-95)
  153.          - Timerloop in minutes and much more precisely
  154.          - No need to start with run any more
  155.          - At all more secure and more systemconform
  156.          - A4000 support
  157.  
  158.         v1.2: (20-Apr-95)
  159.          - docs completely rewritten
  160.          - Support of 2nd HD`s
  161.          - New args OTHER and OTHER2 and NOW and NOW2
  162.  
  163.         v1.33: (7-Jan-96)
  164.          - HDOff crashed if started on heavy diskaccess.
  165.          - new options SET1200 and SET4000
  166.          - Implementation of the onlineport. Have a look in
  167.            Developers.doc for usage.
  168.  
  169.         v1.34: (22-Feb-96)
  170.      - Fixed a bug in the onlineport: PortVer wasn`t set.
  171.          - Added GetStats&Source
  172.          - Completely reworked Developer.doc
  173.          - Now working 100% on A600
  174.          - New arg UPDATE (thx to Ingo Eickelkamp for suggestion)
  175.  
  176.         v1.35: (16-Mar-96)
  177.          - New option QUIET
  178.          - Bugfix in UPDATE, wrong values were taken
  179.          - Now there is again a check if you enter too big values
  180.          - MAJOR bug: HD spun only the 1st time down on a1200 [thx to Oli Lohr]
  181.          - System of timecounting changed, now 100% accurate
  182.          - NOW(2) working again [thx to Oli Lohr]
  183.          - New options STOP(2) [thx to A.BOERNER@bbrandes.berlinet.de]
  184.          - New, bugfixed and improed version of Getstats [Thx Matthias Andree!]
  185.  
  186. THANKS
  187.         Many    thanks    to   heureka@bigben.dssd.sub.org   and   M.ZIELINSKI@
  188.         amtrash.comlink.de for their helps on A4000 and 2nd HD support, and all
  189.         other`s  who wrote me!  A special thank must go out to Matthias Andree,
  190.         who had a look at the docs!
  191.  
  192. SECURITY
  193.         If  you  want  to be shure you have the original programs, check
  194.         with  "md5sum  -c  HDOff.doc".   (md5sum is part of the PGP package)
  195.  
  196. dfdf15f58f042ffa0f018ba8277124f7  AFD-COPYRIGHT
  197. f7da7a8653f2153aea03f73d664f2a40  AFD-COPYRIGHT.de
  198. e0bdb9e8df99708642497b5a64fe3560  Developers.doc
  199. daff72ad723bed515bbef46857627708 *GetStats
  200. bc36101011f5767b4595fe630f6255d6  GetStats.c
  201. 0c715e81afc8b0e9277212e004037617 *HDOff
  202. df5b8c6a9f275a980fa5735059c14b8c  HDOff_1.35.readme
  203.  
  204. - -----BEGIN PGP PUBLIC KEY BLOCK-----
  205. Version: 2.6.3i
  206.  
  207. mQCNAi3izr8AAAEEAMi+7o+iKDG26t8EuoX0NJ92iwhkviRC3GdJ1Uvef4+xJA3V
  208. ey20ZnzBg/OokPdo0a3VxhwyjD2auyFmp7DLupQTko7Wx2zLk19EzVBxI6NggUev
  209. ep+eaVvAi8V/YosYh0Xg4/dScOq391irO6k9+BPqkQPH+bRNCUBgnhXGkfElAAUR
  210. tChHaWRlb24gWmVueiA8TWFydmluQEJpZ0Jlbi5kc3NkLnN1Yi5vcmc+iQCVAwUQ
  211. MKAFYEBgnhXGkfElAQHfNgQApPTXMFip0cg2goWRCy/0v6EeVyDCnFiHu0WKk7ge
  212. HkHz2S1esiF87KedcNPmWhn75ZknXaGFzWkX/Qnxdh5Pk3AyTdzDURnu1WBN2lnL
  213. huXbmCK08j3rBtvLq0rZg2L8Dvpf/rjTSB86UXf47MgR+Wow5vltwvL1NEI1GACY
  214. Bpm0JkdpZGVvbiBaZW56IDxNYXJ2aW5AQklHQkVOLnd3Yi5zdWIuZGU+iQCVAgUQ
  215. Lunxnys4JdI2NDr5AQFsNQQAjjpOR+crQZY8RXviWGuJ6K806bh9mCIOYXmfmaJl
  216. i2aEI2qpbLaN+K394usK0cynleGVFCkOfAa+J3PQTIOPSTB+8p2mcAN2JuZWR85e
  217. UE6JKyRU96D8c36CNgKxytelDuD4JAwA6gG/CiqiECr59gnaaGwrkpL6h+iMBQcY
  218. bwy0Mk5PVEU6IE1hcnZpbkBCSUdCRU4ud3diLnN1Yi5kZSBub3QgdmFsaWQgYW55
  219. IG1vcmUhtBVHaWRlb24gWmVueiAyOjI0NDAvOTk=
  220. =NZ+T
  221. - -----END PGP PUBLIC KEY BLOCK-----
  222.  
  223. -----BEGIN PGP SIGNATURE-----
  224. Version: 2.6.3i
  225. Charset: noconv
  226.  
  227. iQCVAwUBMUte10BgnhXGkfElAQGuvQQAoq8jd0yZwp8QQmloQnj8+j17Vj8n/4KK
  228. Vjc8FhXarzyOdsBz05hxv/cx3Rh3YerdtDSCcbozetsDI7+zayJ10qL4n9jYA+cr
  229. PLruvdKXKM1PJffGFe27dHcNoFVgLAYPEXDZArcQYwshjGDCSp7jKr/MhTBeOzI+
  230. vD7Y5qfKwG8=
  231. =ionL
  232. -----END PGP SIGNATURE-----
  233.